physics_particle_get_group_flags

Get the group type flags for a group of particles.

语法:

physics_particle_get_group_flags(group)


参数 描述
group The particle group to get.


返回: Real(实数)


描述

With this function you can retrieve the group flags for a group of particles. The group value is that which was returned when you created the group of particles using the function physics_particle_group_end, and the function will return a value which is the combined value of the currently set flags.


例如:

var flags = physics_particle_get_group_flags(group, flags);
if flags != phy_particle_group_flag_solid | phy_particle_group_flag_rigid
   {
   flags = phy_particle_group_flag_solid | phy_particle_group_flag_rigid;
   physics_particle_set_group_flags(group, flags);
   }

The above code will create a variable to store the flags value and then use it to check the flags of the group indexed in the variable "group". If they are not the same, the group is set with these flags.


上一页: Soft Body Particles
下一页: physics_particle_group_get_inertia
© Copyright YoYo Games Ltd. 2018 All Rights Reserved